package com.icedevcloud.upms.controller.admin.role.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 * 设置角色状态ReqDto
 * </p>
 *
 * @author dengbing
 * @since 2023-08-13
 */
@Schema(name = "设置角色状态ReqDto")
@Data
public class SetRoleStatusReqDto {

    @NotNull(message = "ID不能为空")
    @Schema(description = "ID")
    private Long id;

    @Max(value = 1, message = "状态只能为 (1-启用 0-禁用)")
    @Min(value = 0, message = "状态只能为 (1-启用 0-禁用)")
    @NotNull(message = "状态不能为空")
    @Schema(description = "状态")
    private Integer status;

}
